package com.fanrui.code.entity;

import java.io.Serializable;
import java.util.Date;

import com.fanrui.code.db.jvmdb.IPersistable;

/**
 * @author 
 */
public class LoginInfo implements Serializable, IPersistable<Integer> {
    private Integer id;

    /**
     * 登录的ip
     */
    private String loginIp;

    /**
     * 登录时间
     */
    private Date loginTime;

    /**
     * 设备号
     */
    private String deviceCard;

    /**
     * 平台标示
     */
    private Integer platformFlag;

    /**
     * app版本号
     */
    private String appVerion;

    /**
     * 玩家ID
     */
    private Long playerId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getDeviceCard() {
        return deviceCard;
    }

    public void setDeviceCard(String deviceCard) {
        this.deviceCard = deviceCard;
    }

    public Integer getPlatformFlag() {
        return platformFlag;
    }

    public void setPlatformFlag(Integer platformFlag) {
        this.platformFlag = platformFlag;
    }

    public String getAppVerion() {
        return appVerion;
    }

    public void setAppVerion(String appVerion) {
        this.appVerion = appVerion;
    }

    public Long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Long playerId) {
        this.playerId = playerId;
    }

	@Override
	public void setPersistKey(Integer id) {
		this.id = id;
	}

	@Override
	public Integer getPersistKey() {
		return id;
	}
}